package com.app.teaware.bean;

import android.text.TextUtils;

import com.app.teaware.R;

public class WorkListData extends BasisBean {

    /**
     * {
     *         "mid": "2108180004",
     *         "aid": "1",
     *         "mty": "生产",
     *         "mna": "",
     *         "wno": "2108140003",
     *         "cid": "2108140004",
     *         "cna": "干燥",
     *         "mdt": "2021-08-18",
     *         "mno": "2108180004",
     *         "uno": "admin",
     *         "una": null,
     *         "mht": null,
     *         "udt": null,
     *         "upm": null,
     *         "bfs": "2",
     *         "tys": "未审核",
     *         "nch": null,
     *         "wch": null
     *         mfs:0或1}  0分开  1整板
     *       }
     */
    private static final long serialVersionUID = 1L;

    private String mid; //主表key
    private String mty; //工单类型：计划、订单
    private String mna; //客户名称：非客户、客户
    private String wno; //单号
    private String cid; //工艺id
    private String cna; //工艺名称
    private String mdt; //日期
    private String mno; //工单号
    private String una; //修改人名称
    private String mht; //保留，暂未使用
    private String udt; //修改日期
    private String upm; //修改人
    private String bfs; //1工单，2领料，3退料，4入库
    private String tys; //审核状态


    private String gcd; //旧编码
    private String loc; //楼层
    private int mfs = 0; //0分开  1整板


    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }


    public String getMty() {
        return mty;
    }

    public void setMty(String mty) {
        this.mty = mty;
    }

    public String getMna() {
        return mna;
    }

    public void setMna(String mna) {
        this.mna = mna;
    }

    public String getWno() {
        return wno;
    }

    public void setWno(String wno) {
        this.wno = wno;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCna() {
        return cna;
    }

    public void setCna(String cna) {
        this.cna = cna;
    }

    public String getMdt() {
        return mdt;
    }

    public void setMdt(String mdt) {
        this.mdt = mdt;
    }

    public String getMno() {
        return mno;
    }

    public void setMno(String mno) {
        this.mno = mno;
    }


    public String getUna() {
        return una;
    }

    public void setUna(String una) {
        this.una = una;
    }

    public String getMht() {
        return mht;
    }

    public void setMht(String mht) {
        this.mht = mht;
    }

    public String getUdt() {
        return udt;
    }

    public void setUdt(String udt) {
        this.udt = udt;
    }

    public String getUpm() {
        return upm;
    }

    public void setUpm(String upm) {
        this.upm = upm;
    }

    public String getBfs() {
        return bfs;
    }

    public void setBfs(String bfs) {
        this.bfs = bfs;
    }

    public String getTys() {
        return tys;
    }

    public int getImaByTys() {
        if(TextUtils.isEmpty(tys)){
            return R.drawable.icon_wait_check;
        }
        switch (tys){
            case "未审核":
                return R.drawable.icon_wait_check;
            default:
                return R.drawable.icon_pass;
        }
    }

    public void setTys(String tys) {
        this.tys = tys;
    }

    public String getNch() {
        return nch;
    }
    public int getMfs() {
        return mfs;
    }

    public void setMfs(int mfs) {
        this.mfs = mfs;
    }

    public void setNch(String nch) {
        this.nch = nch;
    }

    public String getWch() {
        return wch;
    }

    public void setWch(String wch) {
        this.wch = wch;
    }
    public String getWun() {
        return wun;
    }

    public void setWun(String wun) {
        this.wun = wun;
    }
    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }



    private String nch;
    private String wch;



    private String wun;



    public String getGcd() {
        return gcd;
    }

    public void setGcd(String gcd) {
        this.gcd = gcd;
    }


}
